import request from '@/utils/request'

export function getdata(params) {
  return request({
    url: 'api/scanmetadata/page',
    method: 'get',
    params
  })
}

// export function updateBatch(data) {
//     return request({
//         url: 'api/scanmetadata/updateBatchSyncType',
//         method: 'post',
//         data
//     })
// }
export function syncruleconf(id) {
  return request({
    url: 'api/syncruleconf/' + id,
    method: 'get'
  })
}

export function updateRules(data) {
  return request({
    url: 'api/scanmetadata/syncConfIdChange',
    method: 'post',
    data
  })
}

export function updateBatch(data) {
  return request({
    url: 'api/scanmetadata/updateBatchSyncType',
    method: 'post',
    data
  })
}
export default { getdata, updateBatch, syncruleconf, updateRules }
